#include <buola/scene/transform/crttransform.h>

namespace buola { namespace scene {

void CRTTransform::SetTranslation(const mat::CVec3d &pTrans)
{
    mTranslation=pTrans;
    mLocalTransformValid=false;
}

void CRTTransform::SetRotation(const mat::CQuat_d &pRot)
{
    mRotation=pRot;
    mLocalTransformValid=false;
}

void CRTTransform::CalcLocalTransform()
{
    mLocalTransform=mat::rotation_translation_3d(mRotation,mTranslation);
    mLocalTransformValid=true;
}

/*namespace scene*/ } /*namespace buola*/ }
